package data;

import java.io.Serializable;
import java.util.Date;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Lecture implements Serializable{

	@Persistent
	private static final long serialVersionUID = -8864954476036930263L;

	public Lecture(/*Course course,*/ Date date) {
		//this.course = course; 
	}

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	/*@Persistent
	Course course;*/
	
	@Persistent
	private Date date;

	/*public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}*/

	public Key getKey() {
		return key;
	}

	public String toString() {
		return "lecture: " + date; 

	}

}
